import {FormRuleUtil} from "@/utils";

// 场地管理
export const STAFF_EDIT = {
    BODY: {
        code: '',
        name: '',
        site: {code:''},
        isManage: false,
        phone: '',
        password: '',
        status: '',
        sort: 0

    },
    RULES: {
        code: FormRuleUtil.strRule("管家代码", true, 30),
        name: FormRuleUtil.strRule("管家名称", true, 10),
        site: {code : FormRuleUtil.strRule("所属场地", true, 10)},
        // isManage: FormRuleUtil.boolRule("是否是管理员", true),
        phone: FormRuleUtil.strRule("管家登录手机号", true, 10),
        password: FormRuleUtil.strRule("管家密码", true, 10),
        status: FormRuleUtil.strRule("管家状态", true, 10),
        sort: FormRuleUtil.numRule("显示排序", true, 0,100),
    }
}